package com.saicmotor.springboot_demo.model.json_pojo;

import javax.validation.constraints.NotBlank;

public class RoleUpdate {
    @NotBlank(message = "old name cannot be blank")
    String oldName;
    @NotBlank(message = "new name cannot be blank")
    String newName;

    public String getOldName() {
        return oldName;
    }

    public void setOldName(String oldName) {
        this.oldName = oldName;
    }

    public String getNewName() {
        return newName;
    }

    public void setNewName(String newName) {
        this.newName = newName;
    }
}
